<table class="table table-bordered">
    <colgroup>
        <col style="width: 20%;"></col>
        <col style="width: 80%;"></col>
    </colgroup>

    <tr>
        <th class="th-label">卖家ID</th>
        <td>
            <{$data.SellRoleID}>
            <input type="hidden" name="roleID" value="<{$data.SellRoleID}>" />
        </td>
    </tr>
    <th class="th-label">屏蔽结束时间</th>
    <td>
        <input type="text" name="endTime" value="" class="date" />
    </td>
</table>

<script>
    $(function(){
        $('.date').datetimepicker({
            format: 'yyyy-mm-dd hh:ii:00',
            startDate: '<{date('Y-m-d')}>'
        });

        $("#auction-form").submit(function(){
            if(!$("[name='endTime']").val()){
                alert("请填写时间");
                return false;
            }
        });
    });
</script>